﻿using IntelligentAgriculture.Contracts.Dto.Input;
using IntelligentAgriculture.Contracts.Dto.Output;
using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Contracts.Interface
{
    public interface IPermissionService
    {
        /// <summary>
        /// 获取左侧菜单权限
        /// </summary>
        /// <param name="pid"></param>
        /// <returns></returns>
        List<MenuOutput> GetMenuList(int pid);
        /// <summary>
        /// 获取角色权限
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        Task<List<Permission>> GetRolePermission(int roleId);
        /// <summary>
        /// 修改角色权限
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        int SavePermission(UpdRolePermissionInput input);
    }
}